package com.stjb.furns.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author situ
 * @version 1.0
 * @date 2025/5/31 21:08
 * @Description:
 */
public class WebUtils {

    //文件上传的路径
    public static String FURN_IMG_DIRECTORY = "assets/images/product-image";

    /**
     * 判断是否为ajax请求
     * @param request
     * @return
     */
    public static boolean isAjax(HttpServletRequest request){
        return "XMLHttpRequest".equals(request.getHeader("X-Requested-With"));
    }

}
